package com.hzx.dao;

import com.hzx.pojo.User;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {

    Integer deleteByPrimaryKey(Integer id);

    Integer insert(User record);

    Integer insertSelective(User record);

    User selectByPrimaryKey(Integer uid);

    Integer updateByPrimaryKeySelective(User record);

    Integer updateByPrimaryKey(User record);

    User selectByUsernameAndPassword(String name,String password);

    User selectByUsername(String name);

    User selectByphone(String phone);

    Integer selectUidByphone(String phone);

    Integer selectUserNum();

}


//public interface UserInformationMapper {
//    int deleteByPrimaryKey(Integer id);
//
//    int insert(UserInformation record);
//
//    int insertSelective(UserInformation record);
//
//    UserInformation selectByPrimaryKey(Integer id);
//
//    int updateByPrimaryKeySelective(UserInformation record);
//
//    int updateByPrimaryKey(UserInformation record);
//
//    int selectIdByPhone(String phone);
//
//    List<UserInformation> getAllForeach(List<Integer> list);
//}